import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import mutations from './mutations'

Vue.use(Vuex)

export default new Vuex.Store({
  state: state,
  // actions: {
  //   changeCity (ctx, paramCity) {
  //     // console.log(paramCity)不涉及异步或批量可以不用dispatch
  //     ctx.commit('changeCity', paramCity)
  //   }
  // },
  mutations: mutations
})
